package com.shop.service.impl;

import java.util.List;

import com.shop.bean.Goods;
import com.shop.dao.GoodsDao;
import com.shop.dao.impl.GoodsDaoImpl;
import com.shop.service.GoodsService;

public class GoodsServiceImpl implements GoodsService {
	GoodsDao gd = new GoodsDaoImpl();

	@Override
	public List<Goods> getGoodsByPageNS(int pageNum,int pageSize) {
		return gd.queryByPageNS(pageNum, pageSize);
	}

	@Override
	public int getCount() {
		return gd.queryCount();
	}

	@Override
	public int deleteGoods(int id) {
		return gd.deleteGoodsById(id);
	}

}
